home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / Small Eiffel 0.4.8 / lib_show / bench2 / link_list_bench.e < prev    next >
Encoding:
Text File  |  1997-04-13  |  405 b   |  31 lines  |  [TEXT/ttxt]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class LINK_LIST_BENCH
  5.  
  6. inherit BENCH;
  7.  
  8. creation make
  9.  
  10. feature
  11.  
  12.    cltn: LINK_LIST[INTEGER];
  13.  
  14.    make is
  15.       local
  16.      i: INTEGER;
  17.       do
  18.      from
  19.         !!cltn.make;
  20.         i := count;
  21.      until
  22.         i = 0
  23.      loop
  24.         cltn.add_last(0);
  25.         i := i - 1;
  26.      end;
  27.      bench;
  28.       end;
  29.  
  30. end
  31.